﻿<Application x:Class="NexTrackDesktop.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:media="clr-namespace:NexTrackDesktop.Media"
             StartupUri="MainWindow.xaml"
             ShutdownMode="OnMainWindowClose">
    <Application.Resources>
        <ResourceDictionary>
            <BitmapImage x:Key="AlbumArtDefault" UriSource="loading_aa.png" />
            <Style x:Key="AlbumArtStyle" TargetType="{x:Type Border}">
                <Setter Property="Background">
                    <Setter.Value>
                        <ImageBrush ImageSource="{StaticResource AlbumArtDefault}" Stretch="UniformToFill"/>
                    </Setter.Value>
                </Setter>

                <Style.Triggers>
                    <DataTrigger Binding="{Binding Path=HasCachedThumbnail}" Value="True">
                        <Setter Property="Background">
                            <Setter.Value>
                                <ImageBrush ImageSource="{Binding Path=CachedThumbSource}" Stretch="UniformToFill"/>
                            </Setter.Value>
                        </Setter>
                    </DataTrigger>
                </Style.Triggers>

            </Style>
        </ResourceDictionary>
    </Application.Resources>
</Application>
